package com.person.yhzs.wxPayV3.common;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * 微信支付常量类
 *
 * @author luolin
 */
@Component
public class WechatConstants {

    /**
     * @Description 微信小程序ID
     * @Author luolin
     * @Date 2022/6/24 13:21
     **/
    @Value("${wechat.j_applet.appid}")
    String APPID = "";//wxa12255ab4f367376

    /**
     * @Description 微信小程序秘钥
     * @Author luolin
     * @Date 2022/6/24 13:21
     **/
    @Value("${wechat.j_applet.secret}")
    String SECRET = "";//90d1eab521f61d31cc65d4117bd80d3c

    /**
     * @Description 商户ID
     * @Author luolin
     * @Date 2022/6/24 14:54
     **/
    @Value("${wechat.merchants.mch_id}")
    String MCH_ID = ""; // 1627801713

    /**
     * @Description 商户密钥
     * @Author luolin
     * @Date 2022/6/24 14:55
     **/
    @Value("${wechat.merchants.mch_key_v3}")
    String MCH_KEY_V3 = "";  // v3 LUOLIN1511180140LINJING9876APIV3

    /**
     * @Description 商户密钥
     * @Author luolin
     * @Date 2022/6/24 14:55
     **/
    @Value("${wechat.merchants.mch_key_v2}")
    String MCH_KEY_2 = "";    // v2 LUOLIN1511180140LINJING1234APIV2

    /**
     * @Description 证书序列号
     * @Author luolin
     * @Date 2022/6/27 10:20
     **/
    @Value("${wechat.merchants.mch_serial_no}")
    String MCH_SERIAL_NO = "709FEF677C9C399F075B12768141FDB926D915E3";

    /**
     * @Description p12证书
     * @Author luolin
     * @Date 2022/6/27 10:20
     **/
    @Value("${wx_merchants_cert.api_client_cert_p12}")
    String API_CLIENT_CERT_P12 = "";

    /**
     * @Description pem证书
     * @Author luolin
     * @Date 2022/6/27 10:20
     **/
    @Value("${wx_merchants_cert.api_client_cert_pem}")
    String API_CLIENT_CERT_PEM = "";

    /**
     * @Description key_pem证书
     * @Author luolin
     * @Date 2022/6/27 10:20
     **/
    @Value("${wx_merchants_cert.api_client_key_pem}")
    String API_CLIENT_KEY_PEM = "";

    // code码
    String JS_CODE = "";

    // 授权类型
    String GRANT_TYPE = "authorization_code";

    public String getAPPID() {
        return APPID;
    }

    public String getSECRET() {
        return SECRET;
    }

    public String getMCH_ID() {
        return MCH_ID;
    }

    public String getMCH_KEY_V3() {
        return MCH_KEY_V3;
    }

    public String getMCH_KEY_2() {
        return MCH_KEY_2;
    }

    public String getMCH_SERIAL_NO() {
        return MCH_SERIAL_NO;
    }

    public String getAPI_CLIENT_CERT_P12() {
        return API_CLIENT_CERT_P12;
    }

    public String getAPI_CLIENT_CERT_PEM() {
        return API_CLIENT_CERT_PEM;
    }

    public String getAPI_CLIENT_KEY_PEM() {
        return API_CLIENT_KEY_PEM;
    }

    public String getJS_CODE() {
        return JS_CODE;
    }

    public String getGRANT_TYPE() {
        return GRANT_TYPE;
    }
}
